﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AutoMapper;
using MsForgeReboot.Framework.Entities;
using MsForgeReboot.Framework.ViewModels;

namespace MsForgeReboot.Web {
    public static class AutomapperConfig {
        public static void Configure() {
            Mapper.CreateMap<Event, EventEditModel>();
            Mapper.CreateMap<EventEditModel, Event>();
           
            Mapper.CreateMap<User, UserViewModel>();
            Mapper.CreateMap<UserViewModel, User>();

            Mapper.CreateMap<UserGroup, UserGroupEditModel>();
            Mapper.CreateMap<UserGroupEditModel, UserGroup>();

        }
    }

}